package cn.edu.nju.freshdelivery.dao;

import java.util.List;

import cn.edu.nju.freshdelivery.model.Seller;

public interface SellerDAO {

	public void save(Seller transientInstance);

	public void delete(Seller persistentInstance);

	public void update(Seller persistentInstance);

	public Seller findById(java.lang.Integer id);

	public List<Seller> findByExample(Seller instance);

	public List findByProperty(String propertyName, Object value);
	public List findValidByProperty(String propertyName, Object value);

	public List<Seller> findByUsername(Object username);

	public List<Seller> findByPassword(Object password);

	public List<Seller> findByName(Object name);

	public List<Seller> findByAddress(Object address);
	public List<Seller> findValidByAddress(Object address);

	public List<Seller> findByLocation(Object location);

	public List<Seller> findByPhone(Object phone);

	public List<Seller> findByLeastCost(Object leastCost);

	public List<Seller> findByValid(Object valid);

	public List findAll();

	public Seller merge(Seller detachedInstance);

	public void attachDirty(Seller instance);

	public void attachClean(Seller instance);

}